<extend name="Base/list" />

<block name="title">数据表状态</block>

<block name="nav">
<li class="current"><a href="{:U(CONTROLLER_NAME.'/index')}">列表</a></li>
<li><a href="{:U(CONTROLLER_NAME.'/optimize')}">优化表</a></li>
<li><a href="{:U(CONTROLLER_NAME.'/repairAutoindex')}">修复Autoindex</a></li>
</block>

<block name="search"></block>

<block name="list">
<if condition="$All">
<div id="list">
  <table>
    <tr><th class="name">表</th><th class="rows">记录数</th><th class="autoindex">Autoindex</th><th class="size">大小</th><th class="free">多余</th></tr>
    <foreach name="All" key="key" item="value">
    <tr><td>{$value['Name']}</td><td>{$value['Rows']}</td><td>{$value['Auto_increment']}</td><td>{$value['size']}</td><td>{$value['Data_free']} 字节</td></tr>
     </foreach>
    <tr class="tj"><td>{$TableCount}个表</td><td>{$Rows}</td><td>-</td><td>{$Size}</td><td>{$Free} 字节</td></tr>
  </table>
</div>
<else/>
<p id="nothing">暂无数据表</p>
</if>
</block>